﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BOMS.WebUI.Login" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>电池在线监测维护系统</title>
<style type="text/css">
html,body{width:100%;height:100%;margin:0;background:#fff;font:12px/1.5 'microsoft yahei',Tahoma,Helvetica,Arial}
img{border:0}
#fullscreen{vertical-align:middle}
.loginpage{margin:0 auto}
.loginpage b{width:100%;height:80px;background:url(Images/bg.png) repeat-x;display:block}
.loginpage table{margin:auto;clear:both}
.logo{float:right;height:65px;margin:50px 0}
.loginbg{float:left;width:100%;height:176px;background:url(Images/lbg.jpg) repeat-x;margin-bottom:30px}
.loginbg b{background:url(Images/loginbg.jpg) no-repeat center;height:176px;display:block}
.inputcss{width:164px;height:32px;line-height:32px;background:url(Images/inputbg.gif) repeat-x;border:solid 1px #999;font-size:9pt;font-family:Verdana,Geneva,sans-serif}
</style>
<script type="text/javascript">
    function winopen() {
        var features = 'resizable=yes,toolbar=no,status=yes,top=0,left=0,scrollbars=yes,titlebar=no,width=' + (screen.availWidth - 10) + ',height=' + (screen.availHeight - 50);
        var winFrame = window.open('Default.aspx', 'winFrame', features);
        if (winFrame == null) {
            alert('全屏显示需设置浏览器允许弹窗，否则无法进入系统!');
        }
        else {
            var obj = window.open('close.htm', '_self');
            obj.opener = window;
            obj.focus();
        }
    }
    function reset() {
        document.getElementById("txtUsername").value = "";
        document.getElementById("txtPassword").value = "";
    }
    function LoadTop() {
        if (window.top != window) {
            window.top.document.location.href = "Login.aspx?ReturnUrl=2%Default.aspx";
        }
    }
</script>
</head>
<body onload="LoadTop();">
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;height:100%">
  <tr>
    <td valign="top">
        <div class="loginpage"><b></b><div class="logo"><img src="Images/logo.jpg" width="360" height="65" alt=""/></div>
        <div class="loginbg"><b></b></div>
        <table width="260" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
            <td width="40" height="50"><img src="Images/user.gif" width="30" height="30" alt=""/></td>
            <td width="40" height="50">用户</td>
            <td width="180" height="50">
                <asp:TextBox ID="userName" runat="server" class="inputcss"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="userName" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
            </tr>
            <tr>
            <td height="50"><img src="Images/password.gif" width="28" height="32" alt=""/></td>
            <td height="50">密码</td>
            <td height="50">
                <asp:TextBox ID="pwd" runat="server" TextMode="Password" class="inputcss"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="pwd" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
            </tr>
            <tr>
            <td height="50" colspan="2" align="center"><asp:CheckBox ID="fullscreen" runat="server" Text="全屏" /></td>
            <td height="50"><asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="Images/login.gif" width="95" height="34" onclick="loginBtn_Click" /></td>
            </tr>
        </table>
        </div>
    </td>
  </tr>
  <tr>
    <td style="width:100%;height:100px;line-height:100px;text-align:center;font-size:14px;color:#999">
    Copyright @ 1998-2013 北京嘉捷恒信能源技术有限公司 All Rights Reserved.</td>
  </tr>
</table>
</form>    
</body>
</html>